<?php /* Smarty version 2.6.26, created on 2010-11-24 19:22:36
         compiled from edit_practice.tpl */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php $_from = $this->_tpl_vars['practice']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['p']):
?><?php endforeach; endif; unset($_from); ?>
<?php $_from = $this->_tpl_vars['company']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['c']):
?> <?php endforeach; endif; unset($_from); ?>
<?php $_from = $this->_tpl_vars['person']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['pe']):
?> <?php endforeach; endif; unset($_from); ?>

<?php echo $this->_tpl_vars['info_action']; ?>


<div class="grid_6">
	<h2>Szczegóły praktyki</h2>

	<form method="post" action="edit_practice.php">
		<input type="hidden" name= "practice_id" value="<?php echo $this->_tpl_vars['p']['id']; ?>
" />
		<table>
			<tr>
				<td><label for="date_start" class="label">Od dnia (RRRR-MM-DD)</label></td>
				<td><input type="text" id="date_start" name="date_start" class="input" value="<?php echo $this->_tpl_vars['p']['date_start']; ?>
"/></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="date_end" class="label">Do dnia (RRRR-MM-DD)</label></td>
				<td><input type="text" id="date_end" name="date_end" class="input" value="<?php echo $this->_tpl_vars['p']['date_end']; ?>
"/></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="amount" class="label">Ilość miejsc</label></td>
				<td><input type="text" id="amount" name="amount" class="input" value="<?php echo $this->_tpl_vars['p']['amount']; ?>
"/></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="paid" class="label">Praktyka płatna?</label></td>
				<td style="vertical-align: middle";><input type="checkbox" id="paid" name="paid" checked = "<?php if ($this->_tpl_vars['p']['paid'] == '1'): ?>checked<?php endif; ?>" /></td>
				<td></td>
			</tr>	
			<tr>
				<td><label for="duties" class="label">Zakres obowiązków</label></td>
				<td><textarea name="duties" id="duties" rows="5" cols="20" class="input" ><?php echo $this->_tpl_vars['p']['duties']; ?>
</textarea></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="requirements" class="label">Wymagania</label></td>
				<td><textarea name="requirements" id="requirements" rows="5" cols="20" class="input"><?php echo $this->_tpl_vars['p']['requirements']; ?>
</textarea></td>
				<td></td>
			</tr>
			<tr>
				<td><label for="technology" class="label">Technologie</label></td>
				<td><textarea name="tech" id="tech" rows="5" cols="20" class="input"><?php echo $this->_tpl_vars['p']['technology']; ?>
</textarea></td>
				<td></td>
			</tr>					
		</table>
		<input type="submit" class="button b_blue" name="update" value="Zmień" />
	</form>
</div>
<div class="grid_6">
	<h2>Informacje o firmie</h2>
	<table>
		<tr>
			<td>Nazwa</td>
			<td><?php echo $this->_tpl_vars['c']['name']; ?>
</td>
		</tr>
		<tr>
			<td>Adres</td>
			<td><?php echo $this->_tpl_vars['c']['address']; ?>
</td>
		</tr>
		<tr>
			<td>Strona www</td>
			<td><?php echo $this->_tpl_vars['c']['site']; ?>
</td>
		</tr>			
		<tr>
			<td>Email</td>
			<td><?php echo $this->_tpl_vars['c']['email']; ?>
</td>
		</tr>
		<tr>
			<td>Telefon</td>
			<td><?php echo $this->_tpl_vars['c']['phone']; ?>
</td>
		</tr>
	
	</table>
	
	<h2>Osoba kontaktowa</h2>
	<table>
		<tr>
			<td>Imię</td>
			<td><?php echo $this->_tpl_vars['pe']['name']; ?>
</td>
		</tr>
		<tr>
			<td>Nazwisko</td>
			<td><?php echo $this->_tpl_vars['pe']['surname']; ?>
</td>
		</tr>		
		<tr>
			<td>Email</td>
			<td><?php echo $this->_tpl_vars['pe']['email']; ?>
</td>
		</tr>
		<tr>
			<td>Telefon</td>
			<td><?php echo $this->_tpl_vars['pe']['phone']; ?>
</td>
		</tr>
	
	</table>	
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>